import request from "../request";

const rootUrl = "/user/article/"

export const addArticleList = (data) => {
    return request("post",rootUrl+"add",data)
}

export const countByPubdate = (data) => {
    return request("get",rootUrl+"countByPubdate",data)
}

export const countByPubdateAndAuthor = (data) => {
    return request("get",rootUrl+"countByPubdateAndAuthor",data)
}

export const findAll = (data) => {
    return request("get",rootUrl+"findAll",data)
}

export const findArticleByAuthor = (data) => {
    return request("get",rootUrl+"findArticleByAuthor",data)
}

export const findArticleByKeywords = (data) => {
    return request("get",rootUrl+"findArticleByKeywords",data)
}

export const findArticleByKeywordsAndAuthor = (data) => {
    return request("get",rootUrl+"findArticleByKeywordsAndAuthor",data)
}

export const findArticleByPubdate = (data) => {
    return request("get",rootUrl+"findArticleByPubdate",data)
}

export const findArticleByPubdateAndAuthor = (data) => {
    return request("get",rootUrl+"findArticleByPubdateAndAuthor",data)
}

export const findArticleBySearchVo = (data) => {
    return request("get",rootUrl+"findArticleBySearchVo",data)
}

export const keywordsCount = (data) => {
    return request("get",rootUrl+"keywordsCount",data)
}

export const keywordsCountByAuthor = (data) => {
    return request("get",rootUrl+"keywordsCountByAuthor",data)
}

export const overWrite = (data) => {
    return request("post",rootUrl+"overWrite",data)
}

export const pageFind = (data) => {
    return request("get",rootUrl+"pageFind",data)
}

export const sumCommentaryByAuthor = (data) => {
    return request("get",rootUrl+"sumCommentaryByAuthor",data)
}

export const sumLikesByAuthor = (data) => {
    return request("get",rootUrl+"sumLikesByAuthor",data)
}

export const sumViewsByAuthor = (data) => {
    return request("get",rootUrl+"sumViewsByAuthor",data)
}

